<%--
  Created by IntelliJ IDEA.
  User: 杨威
  Date: 2021/9/15
  Time: 14:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String[] strs={"hello","hi","你好啊","大海"};
    request.setAttribute("strs",strs);
%>

<c:if test="${9>1}">
    九大于一
</c:if>
<c:set var="score" value="80"></c:set>
<c:choose>
    <c:when test="${score>90}">优秀</c:when>
    <c:when test="${score>80}">良</c:when>
    <c:when test="${score>70}">及格</c:when>
    <c:when test="${score>70}">还行</c:when>
    <c:otherwise>不及格</c:otherwise>
</c:choose>
<c:forEach items="${strs}" var="str" varStatus="i">
    ${str}
    ${i.index}
    ${i.count}
    <br/>
</c:forEach>
</body>
</html>
